package com.song.shopping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName book_orderitem
 */
@TableName(value ="book_orderitem")
@Data
public class Orderitem implements Serializable {
    /**
     * 订单明细id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @TableField(value = "orderId")
    private String orderid;

    /**
     * 图书编号
     */
    @TableField(value = "bookId")
    private Integer bookid;

    /**
     * 图书数量
     */
    @TableField(value = "amount")
    private Integer amount;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 是否可用
     */
    @TableField(value = "enabled")
    private Integer enabled;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}